package com.lzq.model.factory.abs;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2022/11/15 11:08
 * @updateUser : modify
 * @updateTime : 2022/11/15 11:08
 * @updateRemark :
 */
public class Test {
    public static void main(String[] args) {
        ItalyStyleFactory factory = new ItalyStyleFactory();
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        System.out.println(coffee.getName() + " <<<<<=====>>>>> " + dessert.getName());

        UsaStyleFactory usaStyleFactory = new UsaStyleFactory();
        Coffee coffee1 = usaStyleFactory.createCoffee();
        Dessert dessert1 = usaStyleFactory.createDessert();
        System.out.println(coffee1.getName() + " <<<<<=====>>>>> " + dessert1.getName());
    }
}
